#define BOOST_TEST_MODULE example
#include <list>
#include <iostream>
#include <boost/test/included/unit_test.hpp>

boost::test_tools::predicate_result validate_list(std::list<int>& L1)
{ 
  std::list<int>::iterator it1 = L1.begin( );
  for (; it1 != L1.end( ); ++it1) 
   { 
     if (*it1 <= 1) return false; 
   }
  return true;
}

BOOST_AUTO_TEST_SUITE ( test ) 

BOOST_AUTO_TEST_CASE( test )
{
	std::list<int> aList ;
	for(int i=10; i >= 0; i--)
		aList.push_back(i);
	std::list<int>::iterator ii;
	for(ii=aList.begin(); ii != aList.end(); ii++)
		std::cout<< *ii << " " ;
	std::cout<< std::endl ;

    BOOST_CHECK( validate_list(aList) );
}

BOOST_AUTO_TEST_SUITE_END( )

